package Code.Math.Test;

public class Test1 {
    public static void main(String[] args) {

        //判断一个数是否为质数
        //SystemDemo2.out.println(isPrime(100));

    }

    public static boolean isPrime(int number){
        int count = 0;
        for (int i = 2; i <= Math.sqrt(number); i++) {
            count ++ ;
            if (number % i == 0){
                return false;
            }
        }
        System.out.println(count);
        return true;
    }

}
